Skip to content

fix deprecated warning for action graph APIs.#1188

Merged
ahcorde merged 1 commit into
rollingfrom
fujitatomoya/issues/1187
Feb 13, 2026
Merged

fix deprecated warning for action graph APIs.#1188
ahcorde merged 1 commit into
rollingfrom
fujitatomoya/issues/1187

Conversation

@fujitatomoya
Copy link
Copy Markdown
Collaborator

Description

follow up of ros2/rclpy#1574

Fixes #1187

Is this user-facing behavior change?

No

Did you use Generative AI?

No

Additional Information

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates ros2cli’s internal graph API usage for action discovery to avoid deprecation warnings introduced by rclpy changes (follow-up to ros2/rclpy#1574), aligning ros2cli/daemon and direct node strategies with the newer rclpy.node.Node action graph APIs.

Changes:

  • Switch DirectNode action graph helpers from rclpy.action.* to Node.get_action_* methods.
  • Update daemon XML-RPC function registration to use node.get_action_* methods directly (removing the need for bind() and rclpy.action imports).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
ros2cli/ros2cli/node/direct.py Removes deprecated rclpy.action graph calls and delegates to Node action graph methods.
ros2cli/ros2cli/daemon/init.py Registers daemon XML-RPC action graph APIs via node methods, eliminating deprecated rclpy.action usage.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown
Collaborator Author

@fujitatomoya fujitatomoya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ahcorde i just missed this one during ros2/rclpy#1574, can you review this?

@fujitatomoya
Copy link
Copy Markdown
Collaborator Author

fujitatomoya commented Feb 12, 2026

Pulls: #1188
Gist: https://gist.githubusercontent.com/fujitatomoya/5f6c3da860ab62e92616e662b884a00a/raw/03aa19554cfec9a3199dfb58d4aaf5bd777d1ae0/ros2.repos
BUILD args: --packages-above-and-dependencies ros2cli
TEST args: --packages-above ros2cli
ROS Distro: rolling
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/18179

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Linux-rhel Build Status
  • Windows Build Status

@ahcorde ahcorde merged commit 227509a into rolling Feb 13, 2026
9 checks passed
@ahcorde ahcorde deleted the fujitatomoya/issues/1187 branch February 13, 2026 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deprecation warnings when colcon test ros2action

3 participants